﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using SCS.Core.Internal;

namespace SCS.Core.Models.CollectionFontend
{

    public class RegisterWebshopCollection 
    {
        [Required(ErrorMessage = "*")]
        [StringLength(250)]
        public string FullName { get; set; }

        //[Required(ErrorMessage = "User Name is required")]
        //[StringLength(250)]
        //public string UserName { get; set; }

        [Required(ErrorMessage = "*")]
        [StringLength(250)]
        public string CompanyName { get; set; }

        [Required(ErrorMessage = "*")]
        [DisplayName("Email")]
        [RegularExpression(@"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}", ErrorMessage = "Email is is not valid.")]
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        [Required(ErrorMessage = "*")]
        [DisplayName("Password")]
        [StringLength(250)]
        public string Password { get; set; }

        [Required(ErrorMessage = "*")]
        [StringLength(50)]
        public string Phone { get; set; }

        [Required(ErrorMessage = "*")]
        [DisplayName("Confirm Password")]
        [StringLength(250)]
        public string ConfirmPassword { get; set; }

        [Required(ErrorMessage = "*")]
        [DisplayName("AddressWebshop")]
        [StringLength(250)]
        public string AddressWebshop { get; set; }

        public bool Agree { get; set; }

        public int ProductID { get; set; }

    }
}
